#!/bin/bash

read -p "mkdir and chown /aid/sftpgo/home"
mkdir -p /aid/sftpgo/home
chown -R 1000:1000 /aid/sftpgo/home

read -p "mkdir and chown /srv/data"
mkdir -p /srv/data
chown -R 1000:1000 /srv/data

# if [ -e /aid/sftpgo/sftpgo.json ]
# then
#     echo "sftpgo.json exists"
#     chown 1000:1000 /aid/sftpgo/sftpgo.json
# else
#     echo "sftpgo.json not exists & copy default"
#     mkdir -p /aid/sftpgo
#     cp ~/stacks/sftpgo/sftpgo-default.json /aid/sftpgo/sftpgo.json
# fi